/*
* @Author: Marte
* @Date:   2018-11-01 11:18:01
* @Last Modified by:   Marte
* @Last Modified time: 2018-11-01 16:13:34
*/
var express = require('express');
var router = express.Router();
var captcha = require('../services/common/captcha.js');
var loginService = require('../services/login_service.js')
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});
router.get("/captcha", captcha.genCaptcha);
router.post("/login",loginService.login);

// 校验验证码
router.get("/captcha/verify", captcha.verifycCaptcha);
module.exports = router;
